TEMPLATE = app
CONFIG += precompiled_header
CONFIG -= app_bundle
CONFIG -= qt
CONFIG(debug, debug|release){
#调试模式
    CONFIG += console
}

PRECOMPILED_HEADER=stdafx.h


WXWIN=E:/Qt/wxWidgets-3.1.3

DEFINES +=     __WXMSW__ \
    _UNICODE \
    UNICODE \
    __USE_MINGW_ANSI_STDIO=1 \

QMAKE_CFLAGS += -w
QMAKE_CXXFLAGS += -w

LIBS += -L$${WXWIN}/lib/gcc_lib
LIBS += -L$${PWD}/../lib

CONFIG(debug, debug|release) {
#调试模式
    DEFINES += _DEBUG
    INCLUDEPATH += $${WXWIN}/lib/gcc_lib/mswud
    LIBS += -lwxmsw31u -lwxmsw31u_gl -lwxexpat \
            -lwxjpeg -lwxpng -lwxregexu  -lwxscintilla \
            -lwxtiff -lwxzlib
    TARGET =$${TARGET}_d
} else {
#发行模式
    DEFINES += NDEBUG
    INCLUDEPATH += $${WXWIN}/lib/gcc_lib/mswu
    LIBS += -lwxmsw31ud -lwxmsw31ud_gl -lwxexpatd \
            -lwxjpegd -lwxpngd -lwxregexud -lwxscintillad \
            -lwxtiffd -lwxzlibd
}

INCLUDEPATH += $${WXWIN}/include

INCLUDEPATH += $${PWD}/../lua_tinker

LIBS +=  -lluaE -lm -lboost_locale-mt
LIBS += -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool \
        -lwinmm -lshell32 -lshlwapi -lcomctl32 -lole32 -loleaut32 \
        -luuid -lrpcrt4 -ladvapi32 -lversion -lwsock32 -lwininet \
        -loleacc -luxtheme -lws2_32
LIBS += -L$${PWD}/../lib
DESTDIR = $${PWD}/../bin


RC_FILE = logo.rc

SOURCES += \
    jbleditor.cpp \
    jdbmodule.cpp \
    jglobals.cpp \
    jinpatient.cpp \
    jlistmodel.cpp \
    jryjleditor.cpp \
    jtable.cpp \
    jwebviewexechandler.cpp \
    lua_tinker.cpp \
    mbhelper.cpp \
    stdafx.cpp \
    japp.cpp \
    jmainframe.cpp \
    jlogindialog.cpp \
    japptraits.cpp \
    jeventloop.cpp \
    jappconfig.cpp \
    msado15_mgw.cpp \
    app_guis.cpp \
    WebViewMiniBlink.cpp \
    strhelper.cpp \
    wxhelper.cpp



HEADERS += \
    app_res.h \
    jbleditor.h \
    jdbmodule.h \
    jglobals.h \
    jinpatient.h \
    jlistmodel.h \
    jryjleditor.h \
    jtable.h \
    jwebviewexechandler.h \
    lua_tinker.h \
    lua_tinker_stackobj.h \
    mbhelper.h \
    stdafx.h \
    japp.h \
    jmainframe.h \
    jlogindialog.h \
    jeventloop.h \
    japptraits.h \
    jappconfig.h \
    msado15_mgw.h \
    app_guis.h \
    WebViewMiniBlink.h \
    msado15_tlh.h \
    msado15_tli.h \
    comdef_msado.h \
    strhelper.h \
    type_traits_ext.h \
    wkedefine.h \
    wxhelper.h

DISTFILES += \
    app_guis.fbp \
    app_res.xrc \
    appimage.jpg \
    build_xrc.cmd \
    logo.ico \
    logo.rc \
    man.png \
    man_big.png \
    weman.png \
    weman_big.png
